
net stop JWawi


set dirname=%date%_%time:~0,2%.%time:~3,2%.%time:~6,2%
md "c:\backup_wawi\%dirname%"


gbak -b -user SYSDBA -pass masterkey C:\wawi\MOOI.GDB C:\backup_wawi\%dirname%\mooi.gbk



net stop FirebirdServerDefaultInstance
net stop FirebirdGuardianDefaultInstance


copy C:\wawi\MOOI.gdb C:\backup_wawi\%dirname%\

set zipname=%dirname%.zip

7z a C:\backup_wawi\%dirname%.zip C:\backup_wawi\%dirname%
sendEmail -f mail@johannes-meyer.net -t mail@johannes-meyer.net -u Datensicherung -m Datensicherung -s smtp.1und1.de -xu mail@johannes-meyer.net -xp nokia3310 -a C:\backup_wawi\%dirname%.zip



net start FirebirdServerDefaultInstance
net start FirebirdGuardianDefaultInstance
net start JWawi